package cn.itsource.org.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.query.PageList;
import cn.itsource.basic.service.IBaseService;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 部门的业务层
 */
public interface IDepartmentService extends IBaseService<Department,DepartmentQuery> {

    /**
     * 分页查询
     * @return
     */
    /*PageList<Department> getAllByPage(DepartmentQuery query);*/

    /**
     * 删除操作
     */
    void delete(Long id);

    /**
     * 新增或修改操作
     */
    void saveOrUpdate(Department department);

    /**
     * 获取部门的无限极树
     * @return
     */
    List<Department> treeDepts();

    /**
     * fuji部门数据
     * @return
     */
    List<Department> getParentDepts();
}
